<template>
    <div>
        <button @click="getRouter">Test2</button>
    </div>
  </template>
  
  <script>
 export default {
    props: {
        id: {type: String||Number, required: true}
    },
    data() {
      return {
      }
    },
    methods: {
        getRouter(){
           console.log(this.id);
        }
    },
    mounted() {
    }
  }
  </script>
  
  <style>
  
  </style>